﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using FileManager_Server.ServiceModel.DataTransfer_Model;
using FileManager_Server.ServiceModel.WCF_Args_Model;

namespace FileManager_Server.BusinessLogic.WCF
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFileTransfer_Service" in both code and config file together.
    [ServiceContract]
    public interface IFileTransfer_Service
    {
        //[OperationContract(IsOneWay = true)]
        //void UploadFile(RemoteFileInfo request);

        //[OperationContract]
        //RemoteFileInfo DownloadFile(DownloadRequest request);

        [OperationContract(IsOneWay = true)]
        void UplodaFileOneWay(UploadFileInfo file); //上传文件

        [OperationContract(IsOneWay = true)]
        void ReNameFile(UploadingSuccessArgs uploadingSuccessArgs);

        [OperationContract]
        void UplodaFile(UploadFileInfo file);

        [OperationContract]
        DownloadingResult DownloadingFile(FileDownloadingArgs fileDownloadingArgs);
    }
}
